package com.haina.shop.controller.index;

import com.haina.shop.result.ServiceResult;
import com.haina.shop.service.IndexImgService;
import com.haina.shop.vo.IndexImgVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping()
public class IndexImgController {
    @Autowired
    private IndexImgService service;
    /**
     * 获取首页轮播图列表信息
     */
    @GetMapping("/indexImgs")
    public ServiceResult<List<IndexImgVO>> getIndexImgs(){
        return service.getIndexImgList();
    }
}
